#pragma once

#include "CFGNode.h"
#include "Type.h"
class CFG {
	private:
		Type::Index::Proc mProcIndex;
		CFGNode* myRoot;
		CFGNode* myEnd;
	public:
		//A CFG corresponds to a procedure
		CFG(Type::Index::Proc);
		~CFG(void);

		void setRoot(CFGNode*);
		void setEnd(CFGNode*);
		Type::Index::Proc getProcIndexCFG();
		CFGNode* getRoot();
		CFGNode* getEnd();
		bool linkCFGNodes(CFGNode*, CFGNode*);
		//Get CFG Node by content? 

};